package com.anywhere.freightman.car.model;

import com.anywhere.freightman.common.BaseModel;
import com.anywhere.freightman.common.enumeration.CarBoxType;
import com.anywhere.freightman.common.enumeration.CarStatus;
import com.anywhere.freightman.common.enumeration.CarType;

import javax.persistence.*;
import java.util.Date;

@Table(name = "car")
@Entity
public class CarModel extends BaseModel {

    private String carNumber;   //车牌号
    @Column(name = "type")
    @Enumerated(EnumType.STRING)
    private CarType type;       //车型
    private String color;       //颜色
    private String regAddr;     //注册地
    private String frameNo;     //车架号
    private String drivingNo;   //行驶证号

    private Double boxLong;
    private Double boxWidth;
    private Double boxHigh;
    @Column(name = "box_type")
    @Enumerated(EnumType.STRING)
    private CarBoxType boxType;
    private Double weight;
    private Double maxLoad;
    private String regularGoods;
    private String route;

    private String frontPicPath;
    private String sidePicPath;
    private String drivingPicPath;

    private Long companyId;
    private Date insertTime;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private CarStatus status;

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public CarType getType() {
        return type;
    }

    public void setType(CarType type) {
        this.type = type;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getRegAddr() {
        return regAddr;
    }

    public void setRegAddr(String regAddr) {
        this.regAddr = regAddr;
    }

    public String getFrameNo() {
        return frameNo;
    }

    public void setFrameNo(String frameNo) {
        this.frameNo = frameNo;
    }

    public String getDrivingNo() {
        return drivingNo;
    }

    public void setDrivingNo(String drivingNo) {
        this.drivingNo = drivingNo;
    }

    public Double getBoxLong() {
        return boxLong;
    }

    public void setBoxLong(Double boxLong) {
        this.boxLong = boxLong;
    }

    public Double getBoxWidth() {
        return boxWidth;
    }

    public void setBoxWidth(Double boxWidth) {
        this.boxWidth = boxWidth;
    }

    public Double getBoxHigh() {
        return boxHigh;
    }

    public void setBoxHigh(Double boxHigh) {
        this.boxHigh = boxHigh;
    }

    public CarBoxType getBoxType() {
        return boxType;
    }

    public void setBoxType(CarBoxType boxType) {
        this.boxType = boxType;
    }

    public Double getWeight() {
        return weight;
    }

    public void setWeight(Double weight) {
        this.weight = weight;
    }

    public Double getMaxLoad() {
        return maxLoad;
    }

    public void setMaxLoad(Double maxLoad) {
        this.maxLoad = maxLoad;
    }

    public String getRegularGoods() {
        return regularGoods;
    }

    public void setRegularGoods(String regularGoods) {
        this.regularGoods = regularGoods;
    }

    public String getRoute() {
        return route;
    }

    public void setRoute(String route) {
        this.route = route;
    }

    public String getFrontPicPath() {
        return frontPicPath;
    }

    public void setFrontPicPath(String frontPicPath) {
        this.frontPicPath = frontPicPath;
    }

    public String getSidePicPath() {
        return sidePicPath;
    }

    public void setSidePicPath(String sidePicPath) {
        this.sidePicPath = sidePicPath;
    }

    public String getDrivingPicPath() {
        return drivingPicPath;
    }

    public void setDrivingPicPath(String drivingPicPath) {
        this.drivingPicPath = drivingPicPath;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Date getInsertTime() {
        return insertTime;
    }

    public void setInsertTime(Date insertTime) {
        this.insertTime = insertTime;
    }

    public CarStatus getStatus() {
        return status;
    }

    public void setStatus(CarStatus status) {
        this.status = status;
    }
}
